from pms.common.views import PostFormula
from project.models import Project
from project.utils.profile import project_view


class API(PostFormula):
    def handle(self, req):
        pid = req['id']
        proj = Project.objects.get(id=pid)
        return self.success_respond(project_view(proj))
